package com.example.wordlistdemo.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import com.example.wordlistdemo.HobbiesDeserializer;

import java.util.List;

public class EcEntiity {
    @JSONField(name ="exam_type")
    private List<String> examType;

    @JSONField(name ="word")
    private List<Word> wordList;


    public List<String> getExamType() {
        return examType;
    }

    public void setExamType(List<String> examType) {
        this.examType = examType;
    }

    public List<Word> getWordList() {
        return wordList;
    }

    public void setWordList(List<Word> wordList) {
        this.wordList = wordList;
    }

    public static class Word {
        @JSONField(name ="usphone")
        private String usPhone;

        @JSONField(name ="ukphone")
        private String ukPhone;

        @JSONField(name ="ukspeech")
        private String ukSpeech;

        @JSONField(name ="usspeech")
        private String usSpeech;

        @JSONField(name ="trs")
        private List<Translation> trs;

        @JSONField(name ="wfs")
        private List<WordForm> wfs;

        public String getUsPhone() {
            return usPhone;
        }

        public void setUsPhone(String usPhone) {
            this.usPhone = usPhone;
        }

        public String getUkPhone() {
            return ukPhone;
        }

        public void setUkPhone(String ukPhone) {
            this.ukPhone = ukPhone;
        }

        public String getUkSpeech() {
            return ukSpeech;
        }

        public void setUkSpeech(String ukSpeech) {
            this.ukSpeech = ukSpeech;
        }

        public String getUsSpeech() {
            return usSpeech;
        }

        public void setUsSpeech(String usSpeech) {
            this.usSpeech = usSpeech;
        }

        public List<Translation> getTrs() {
            return trs;
        }

        public void setTrs(List<Translation> trs) {
            this.trs = trs;
        }

        public List<WordForm> getWfs() {
            return wfs;
        }

        public void setWfs(List<WordForm> wfs) {
            this.wfs = wfs;
        }
    }


    public static class Translation {
        @JSONField(name ="tr")
        private List<TranslationItem> tr;

        public List<TranslationItem> getTr() {
            return tr;
        }

        public void setTr(List<TranslationItem> tr) {
            this.tr = tr;
        }
    }

    public static class TranslationItem {
        @JSONField(name ="l")
        private LanguageItem l;

        public LanguageItem getL() {
            return l;
        }

        public void setL(LanguageItem l) {
            this.l = l;
        }
    }

    public static class LanguageItem {
        @JSONField(name ="i")
        private List<String> i;

        public List<String> getI() {
            return i;
        }

        public void setI(List<String> i) {
            this.i = i;
        }
    }

    public static class WordForm {
        @JSONField(name ="wf")
        private WordFormValue wf;

        public WordFormValue getWf() {
            return wf;
        }

        public void setWf(WordFormValue wf) {
            this.wf = wf;
        }
    }

    public static class WordFormValue {
        @JSONField(name ="name")
        private String name;

        @JSONField(name ="value")
        private String value;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }



}
